home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03094_Script_OLD-NEW INVENTIONS
< prev
next >
Wrap
Text File
|
1996-04-01
|
828b
|
29 lines
-- ---------------------------------------------------------------
-- Handler isOldInvention returns TRUE if the given invention is
-- an old invention and FALSE otherwise.
on isOldInvention whichInvention
set oldInventions = field "old Inventions"
set theLine = BinSearchFirstItemInLine(oldInventions, whichInvention)
if (theLine < 1) then
return 0
else
return TRUE
end if
end
-- ---------------------------------------------------------------
-- Handler isNewInvention returns TRUE if the given invention is
-- a new invention and FALSE otherwise.
on isNewInvention whichInvention
set newInventions = field "new Inventions"
set theLine = BinSearchFirstItemInLine(newInventions, whichInvention)
if (theLine < 1) then
return 0
else
return TRUE
end if
end